
#ifndef ENTRYTT_H_
#define ENTRYTT_H_


#define	THREAD_BLOCKED	0
#define	THREAD_READY	1
#define	THREAD_RUNNING	2

#include <string>
using namespace std;


class EntryTT {
public:
	EntryTT(int serial_number);
    virtual ~EntryTT();
    int getStatus() const
    {
        return _status;
    }

    void setStatus(int _status)
    {
        this->_status = _status;
    }

    int getAcumulated_message_quanta() const
    {
        return _acumulated_message_quanta;
    }

    void setAcumulated_message_quanta(int _acumulated_message_quanta)
    {
        this->_acumulated_message_quanta = _acumulated_message_quanta;
    }

    int getTotal_number_delivered_from_last_quantum() const
    {
        return _total_number_delivered_from_last_quantum;
    }

    void setTotal_number_delivered_from_last_quantum(int _total_number_delivered_from_last_quantum)
    {
        this->_total_number_delivered_from_last_quantum = _total_number_delivered_from_last_quantum;
    }

    int getPriority() const
    {
        return _priority;
    }

    void setPriority(int _priority)
    {
        this->_priority = _priority;
    }

    void print();
    int getCurrent_quanta() const
    {
        return _current_quanta;
    }

    void setCurrent_quanta(int _current_quanta)
    {
        this->_current_quanta = _current_quanta;
    }

private:
	int		_serial_number;
	int		_status;
	int		_acumulated_message_quanta;
	int		_total_number_delivered_from_last_quantum;
	int		_priority;
	int		_current_quanta;

};

#endif /* ENTRYTT_H_ */
